package com.bootdo.lvyou.dao;

import com.bootdo.lvyou.domain.LvyouScenicTicketOrder;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-14 14:54:26
 */
@Mapper
public interface LvyouScenicTicketOrderDao {

	LvyouScenicTicketOrder get(Long id);

	LvyouScenicTicketOrder getByOrderNoAndStatus(
			@Param("orderNo") String orderNo,
			@Param("status")  Integer status
	);
	
	List<LvyouScenicTicketOrder> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);

	int updateStatusByOrderNo(@Param("updateStatus")  Integer updateStatus,
							  @Param("orderNo") String orderNo,
							  @Param("status") Integer status,
							  @Param("payOrderNo")  String payOrderNo,
							  @Param("tkWxOrderNo")  String tkWxOrderNo
							  );
	
	int save(LvyouScenicTicketOrder lvyouScenicTicketOrder);
	
	int update(LvyouScenicTicketOrder lvyouScenicTicketOrder);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
}
